import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '附件主键',
    dataIndex: 'attachId',
    defaultHidden: true,
    align: 'center',
    width: 200,
  },
  {
    title: '救助id',
    dataIndex: 'distressReliefId',
    defaultHidden: true,
    align: 'center',
    width: 200,
  },
  {
    title: '附件名称',
    dataIndex: 'attachFileName',
    align: 'center',
    width: 200,
  },
  {
    title: '附件路径',
    dataIndex: 'attachFilePath',

    align: 'center',
    width: 200,
  },
  {
    title: '附件类型',
    dataIndex: 'attachType',

    align: 'center',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'dateCreated',

    align: 'center',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createdByName',

    align: 'center',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'attachFileName',
    label: '附件名称',
    component: 'Input',
    show: true,
    required: false,
    componentProps: {
      disabled: false,
      placeholder: '请输入附件名称',
    },
    colProps: { span: 12 },
  },
  {
    field: 'attachType',
    label: '附件类型',
    component: 'Input',
    show: true,
    required: false,
    componentProps: {
      disabled: false,
      placeholder: '请输入附件类型',
    },
    colProps: { span: 12 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'attachId',
    label: '附件主键',
    component: 'Input',
    show: false,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入附件主键',
    },
    colProps: { span: 12 },
  },
  {
    field: 'distressReliefId',
    label: '救助id',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入救助id',
    },
    colProps: { span: 12 },
  },
  {
    field: 'attachFileName',
    label: 'attachFileName',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入attachFileName',
    },
    colProps: { span: 12 },
  },
  {
    field: 'attachFilePath',
    label: 'attachFilePath',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入attachFilePath',
    },
    colProps: { span: 12 },
  },
  {
    field: 'attachType',
    label: 'attachType',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入attachType',
    },
    colProps: { span: 12 },
  },
  {
    field: 'createdByUser',
    label: 'createdByUser',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入createdByUser',
    },
    colProps: { span: 12 },
  },
];
